import request from '@/utils/request'

// 查询伴奏列表
export function listAccomp(query) {
  return request({
    url: '/system/accomp/list',
    method: 'get',
    params: query
  })
}

// 查询伴奏详细
export function getAccomp(accompId) {
  return request({
    url: '/system/accomp/' + accompId,
    method: 'get'
  })
}

// 新增伴奏
export function addAccomp(data) {
  return request({
    url: '/system/accomp',
    method: 'post',
    data: data
  })
}

// 修改伴奏
export function updateAccomp(data) {
  return request({
    url: '/system/accomp',
    method: 'put',
    data: data
  })
}

// 删除伴奏
export function delAccomp(accompId) {
  return request({
    url: '/system/accomp/' + accompId,
    method: 'delete'
  })
}
